<!DOCTYPE html>
<html >
	<head>
		<meta charset="utf-8" />
		<script type="text/javascript" src="../js/angular.js" ></script>
		<title></title>
	</head>
	<body ng-app="app" >
		<div ng-controller="ctrl" >
			
		</div>
		<script>
            var app=angular.module("app",[]);
            app.controller("ctrl",["$scope",function($scope){
//                var obj={name:"张三"};
//                angular.extend(obj,{id:1,url:"http://"});
//                console.log(obj);
				$scope.data=[{name:"张三",url:"http://baidu.com"},{name:"李四",url:"http://163.com"}];
				angular.forEach($scope.data,function (v,k) {
					console.log(v);
                })
            }]);

		</script>
	</body>
</html>
